<div id="sub_header">
	<div class="painel">
		<table width="100%" style="border-collapse: separate; border-spacing: 15px; text-align: center">
			<tr>
				<td colspan="4" style="background-color: white; color: #77766F; text-align: center; font-weight: bold;">Mon compte</td>
			</tr>
			<tr>
				<td>
					<a href="/recherche/index" style="text-decoration: none; font-size: 12px">
						<img src ="/images/recherche.gif" width="60" height="60" />
						<br />
						Recherche
					</a>				
				</td>
				<?php
				if($sf_user->hasCredential('responsable') || ($sf_user->hasCredential('client'))) { ?>
				<td>					
					<a href="<?php echo url_for('produit/list') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/produit.gif" width="60" height="60" />
						<br />
						Produits
					</a>	
				</td>
				<?php } if($sf_user->hasCredential("magasinier")) { ?>
				<td>
					<a href="<?php echo url_for('transport/list') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/users.gif" width="60" height="60" />
						<br />
						Transports
					</a>								
				</td>
				<?php } if($sf_user->hasCredential('responsable') || ($sf_user->hasCredential('magasinier'))) { ?>
				<td>
					<a href="<?php echo url_for('commande/list') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/commande.gif" width="60" height="60" />
						<br />
						Commandes
					</a>				
				</td>
				<?php } ?>
				<td>
					<a href="<?php echo url_for('entrepot/list') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/entrepot.gif" width="60" height="60" />
						<br />
						Entrepots
					</a>				
				</td>				
			</tr>
			<tr>
				<td>
				<?php if($sf_user->hasCredential('responsable') || ($sf_user->hasCredential('livreur'))) { ?>
					<a href="<?php echo url_for('livreur/index') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/livraison.gif" width="60" height="60" />
						<br />
						Livraison
					</a>
				<?php }?>											
				</td>
				<?php  if($sf_user->hasCredential('responsable')) { ?>
				<td>
					<a href="<?php echo url_for('utilisateur/list') ?>" style="text-decoration: none; font-size: 12px">
						<img src ="/images/users.gif" width="60" height="60" />
						<br />
						Utilisateurs
					</a>
				</td>
				<td>
					<a href="/bilan/index" style="text-decoration: none; font-size: 12px">
						<img src ="/images/bilan.gif" width="60" height="60" />
						<br />
						Bilan
					</a>					
				</td>	
				<td></td>
				<?php } ?>			
			</tr>
		</table>
	</div>
</div>